//
//  NSURLConnection+Sync.h
//  YDGJ
//
//  Created by ydcq on 16/8/19.
//  Copyright © 2016年 Galaxy360. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger,RequestResult) {
    RequestResultFail=-1,
    RequestResultSuccess=0
};

@interface NSURLConnection (Sync)

+ (void)sendSyncRequestWithUrl:(NSString *)url method:(NSString *)method parameters:(NSDictionary *)dict completionBlock:(void (^)(RequestResult,id))resultBlock;

@end
